package org.csu.mypetstore.service.impl;

import org.csu.mypetstore.domain.Product;
import org.csu.mypetstore.persistence.ProductMapper;
import org.csu.mypetstore.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public Product getProductById(String productId) {
        // 调用Mapper中原有的getProduct方法
        return productMapper.getProduct(productId);
    }
}


